package com.example.jw_web.Mapper;

import com.example.jw_web.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface LonginDao {

    //查询是否存在该用户-->查询成功返回 1
    @Select("select  *  from user where username=#{username} and password=#{password} ")
    public  User selectUser(String username ,String password);



}
